<template>
    <div class="header">
        <i class="iconfont icon-back" @click="handleBack"></i>
        <slot></slot>
    </div>
</template>
<script>
export default {
  methods: {
    handleBack () {
      this.$router.back() // 返回上一个页面
    }
  }
}
</script>
<style lang="scss" scoped>
    .header{
        width: 100%;
        height: 2.75rem;
        line-height: 2.75rem;
        text-align: center;
        font-size: 17px;
        position: fixed;
        top: 0;
        left: 0;
        background-color: white;
        i{
            position: fixed;
            top: 0;
            left: .3125rem;
            width: 1.875rem;
        }
    }
</style>
